package com.weeho.dongyong.config;

/**
 * Created by liufx on 15/11/16.
 */
//@Configuration
//public class JacksonConfiguration {
//
//    @Bean
//    public MappingJackson2HttpMessageConverter customConverters() {
//        MappingJackson2HttpMessageConverter jsonConverter = new MappingJackson2HttpMessageConverter();
//        ObjectMapper objectMapper = new ObjectMapper();
//        objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
//        // 字段和值都加引号
//        objectMapper.configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);
//        objectMapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")) ;
//        jsonConverter.setObjectMapper(objectMapper);
//        return jsonConverter;
//    }
//}
